package com.xique.door.api;

import com.xique.common.core.constant.ServiceNameConstants;
import com.xique.common.core.web.domain.AjaxResult;
import com.xique.door.api.factory.RemoteElevatorFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author shd
 * @create 2022/3/28 19:57
 */
@FeignClient(contextId = "RemoteElevatorService", value = ServiceNameConstants.DOOR_BIZ_SERVICE, fallbackFactory = RemoteElevatorFallbackFactory.class)
public interface RemoteElevatorService {

    /**
     * 同步电梯事件集合
     * @author shd
     * @date 2022/3/28 20:05
     * @return com.xique.common.core.web.domain.AjaxResult
     */
    @PostMapping("elevator/task/syncEvent")
    AjaxResult syncEvent();

    /**
     * 同步运行集合
     * @author shd
     * @date 2022/3/28 20:00
     * @return com.xique.common.core.web.domain.AjaxResult
     */
    @PostMapping("elevator/task/syncRun")
    AjaxResult syncRun();

    /**
     * 同步运行统计
     * @author shd
     * @date 2022/3/28 20:01
     * @return com.xique.common.core.web.domain.AjaxResult
     */
    @PostMapping("elevator/task/syncReport")
    AjaxResult syncReport();
}
